package com.czk.netty.netty.tcp.protocaltcp.practice.protocol;

/**
 * 传输协议
 * 解决tcp粘包拆包问题
 *
 * @Author:ChenZhangKun
 * @Date: 2021/6/8 10:59
 */
public class TransferProtocol {
    /**
     * 长度
     */
    private int length;
    /**
     * 具体内容
     */
    private byte[] content;

    public int getLength() {
        return length;
    }

    public void setLength(int length) {
        this.length = length;
    }

    public byte[] getContent() {
        return content;
    }

    public void setContent(byte[] content) {
        this.content = content;
    }
}
